package yunquan.wang.modules.customer.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import yunquan.wang.base.dao.springdata.BaseRepository;
import yunquan.wang.base.service.impl.BaseServiceImpl;
import yunquan.wang.modules.customer.dao.CustomerDao;
import yunquan.wang.modules.customer.entity.Customer;
import yunquan.wang.modules.customer.service.CustomerService;

@Service("customerService")
@Transactional(value = "jpaTransaction")
public class CustomerServiceImpl  extends BaseServiceImpl<Customer> implements
CustomerService{
	private CustomerDao customerDao;
	@Resource(name = "customerDao")
	public void setDao(CustomerDao customerDao) {
		this.customerDao = customerDao;
	}
	@Override
	public BaseRepository<Customer, String> getDao() {
		return customerDao;
	}
   

}
